<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        * {
            padding: 0;
            margin: 0;
        }

        body {
            perspective: 800px;
            transform-style: preserve-3d;
            perspective-origin: 300px 300px;
        }

        @keyframes skewchange {
            0%{
                transform: skew(45deg, 45deg);
            }
            50%{
                transform: skew(0deg, 0deg);
            }
            100%{
                transform: skew(-45deg, -45deg);
            }
        }



        div {
            position: absolute;
            width: 200px;
            height: 200px;
            left: 200px;
            top: 200px;
            background-image: url("./pic1.jpeg");
            background-size: cover;
            transform-origin: center center;
            transform: skew(0deg, 0deg);
            animation: skewchange 4s cubic-bezier(0,0,1,1) infinite alternate;
        }


    </style>
</head>
<body>
    <div></div>
</body>
</html>